#ifndef SSLSERVER_H
#define SSLSERVER_H

#include <QTCPServer>
#include <QTcpServer>
#include <QSslSocket>
#include <QList>
#include "sslserverthread.h"
class SSLServer:public QTcpServer
{
    Q_OBJECT
public:
    SSLServer(QObject* parent=0);
public slots:
    void startService();
    void stopService();
signals:
private slots:
    void serverThreadDisconnected(int initSocketDescriptor);
    void threadFinished();
    void threadDestroyed();
protected:
    void incomingConnection(int socketDescriptor);

private:
    QList<SSLServerThread*> serverThreadList;
};


#endif // SSLSERVER_H
